package com.zcily.demo.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 组织机构表
 * </p>
 *
 * @author CGG
 * @since 2025-03-16
 */
@Getter
@Setter
@TableName("ac_org")
@ApiModel(value = "Org对象", description = "组织机构表")
public class Org implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("组织机构id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("组织机构名称")
    @TableField("org_name")
    private String orgName;

    @ApiModelProperty("父机构id；0表示根机构")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty("机构id序列，以短横线链接，例如：1-4-13")
    @TableField("org_seq")
    private String orgSeq;

    @ApiModelProperty("显示的顺序")
    @TableField("sort_number")
    private Integer sortNumber;

    @ApiModelProperty("备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
